package ar.edu.utn.frsf.tpae.a2012.g04.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import ar.edu.utn.frsf.tpae.a2012.g04.dao.PagoDao;
import ar.edu.utn.frsf.tpae.a2012.g04.dominio.Cuenta;
import ar.edu.utn.frsf.tpae.a2012.g04.dominio.Pago;
import ar.edu.utn.frsf.tpae.a2012.g04.service.PagoService;

public class PagoServiceImpl implements PagoService {
	
	private PagoDao pagoDao;
	
	
	@Autowired(required = true )
	public void setPagoDao(PagoDao pagoDao) {
		this.pagoDao = pagoDao;
	}

	@Override
	public void crear(Pago pago) {
		pagoDao.persistir(pago);
	}

	@Override
	public void eliminar(Pago pago) {
		pagoDao.eliminar(pago);
	}

	@Override
	public List<Pago> listar() {
		return pagoDao.listar();
	}

	@Override
	public Pago buscarPorId(Integer id) {
		// TODO Auto-generated method stub
		return pagoDao.buscarPorId(id);
	}

	@Override
	public void realizarPago(Pago pago) {
		pagoDao.realizarPago(pago);
		
	}



}
